//
//  SortCollectionViewCell.m
//  CollectionViewTest
//
//  Created by Snow on 16/8/2.
//  Copyright © 2016年 Snow. All rights reserved.
//

#import "SortCollectionViewCell.h"

@interface SortCollectionViewCell ()

@end
@implementation SortCollectionViewCell
- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        _imageOfPic = [[UIImageView alloc] init];
        _label = [[UILabel alloc] init];
        [self.contentView addSubview:_imageOfPic];
        [self.contentView addSubview:_label];
    }
    return self;
}
- (void)layoutSubviews
{
    [super layoutSubviews];
    _imageOfPic.frame = self.contentView.frame;
    _label.frame = CGRectMake(0, 0, self.contentView.frame.size.width, 50);
    _label.textAlignment = 1;
    _label.center = self.contentView.center;
}
@end
